﻿using Games.Basic;
using Games.Common;
using Xamarin.Forms;

namespace Games.PegSolitaire
{
    class GameInfo : BaseViewModel, IGameInfo
    {
        public string Name => "独立钻石";
        public string Desc => "独立钻石是源于18世纪法国的宫廷贵族的自我挑战类单人棋游戏，可以锻炼逻辑思维能力。" +
            "它与中国人发明的华容道、匈牙利人发明的魔方并称“智力游戏界的三大不可思议”。" +
            "\r\n游戏玩法：棋子只能跳过相邻的棋子到空位上，并且把被跳过的棋子吃掉。" +
            "\r\n棋子不能斜跳，剩下越少棋子越好。" +
            "\r\n棋子连跳被记作一步。" +
            "\r\n结果等级：天才：余1棋且在最中央；国手：余1棋；隐士：余2棋；大师：余3棋；专家：余4棋；优秀：余5棋。" +
            "\r\n双击空白区域撤销一跳。";
        public string Version => "1.0";
        public string ID => "F8910CEA-9F05-4EB5-B540-5EC12B629CDF";
        public string BuildDate => "20200708";
        public ContentPage NewPage() => PageHolder.Get(() => new PegSolitarie(this));

        int step = 0;
        public int Step
        {
            get { return step; }
            set { SetProperty(ref step, value); }
        }

        int chessCount = 0;
        public int ChessCount
        {
            get { return chessCount; }
            set { SetProperty(ref chessCount, value); }
        }
    }
}
